﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Domain.Entities;

namespace Domain.NetworkService
{
    public class SnmpResult : NetworkTestResult
    {
        public string Data { get; set; }
        public OidNames Variable { get; set; }
        public override string ToString()
        {
            return String.Format("{0} {1} {2} {3} {4} {5}", VarDateTime, NetworkTestDescription.SNMP, IP, Status, Variable, Data);
        }

        public override void WriteToDB(String name)
        {
            DBWorker dbw = new DBWorker();
            dbw.WriteTestResult(this, name);
        }

        public override string ToString(ToStringFormatArgs arg)
        {
            return String.Format("{0} {1} {2} {3} {4} {5}", VarDateTime, NetworkTestDescription.SNMP, IP, Status, Variable, Data);
        }
    }
}
